package com.hilin.etcd.mq;

import com.hilin.etcd.mq.config.HilinEtcdMqConfig;
import mousio.etcd4j.EtcdClient;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

@EnableConfigurationProperties({
        HilinEtcdMqConfig.class
})
public class HilinEtcdMqAutoConfig {

    @Bean
    public HilinEtcdMqClient hilinEtcdMqClient(EtcdClient client, HilinEtcdMqConfig etcdMqConfig) {
        return new HilinEtcdMqClient(client, etcdMqConfig);
    }

}
